<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>session对象--用户登录</title>
</head>
<body>
<form action="success.jsp" method="post">
<table>
<tr>
<td>用户名</td><td><input type="text" name="username"/></td>
</tr>
<tr><td>密码</td><td><input type="password" name="password"/></td>
</tr>
<tr><td align="center" colspan="2"><input type="submit" value="登录"/></td></tr>
</table>
</form>
你的session ID：<%=session.getId()%>
</body>
</html>
